package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockSource", catalog="Id")
public class TccStockSource extends BaseEntity<TccStockSource> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SourceType", nameJava="sourceType", typeDataBase="tinyint")
	private Integer sourceType;
	@YsField(nameDataBase="SourceBid", nameJava="sourceBid", typeDataBase="varchar")
	private String sourceBid;
	@YsField(nameDataBase="SourceId", nameJava="sourceId", typeDataBase="bigint")
	private Long sourceId;
	@YsField(nameDataBase="StockControlRunningId", nameJava="stockControlRunningId", typeDataBase="bigint")
	private Long stockControlRunningId;
	@YsField(nameDataBase="AssembleBid", nameJava="assembleBid", typeDataBase="varchar")
	private String assembleBid;
	@YsField(nameDataBase="IsNewInventory", nameJava="isNewInventory", typeDataBase="tinyint")
	private Integer isNewInventory;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockSource setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public TccStockSource setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
		return this;
	}
	public String getSourceBid() {
		return sourceBid;
	}
	public TccStockSource setSourceBid(String sourceBid) {
		this.sourceBid = sourceBid;
		return this;
	}
	public Long getSourceId() {
		return sourceId;
	}
	public TccStockSource setSourceId(Long sourceId) {
		this.sourceId = sourceId;
		return this;
	}
	public Long getStockControlRunningId() {
		return stockControlRunningId;
	}
	public TccStockSource setStockControlRunningId(Long stockControlRunningId) {
		this.stockControlRunningId = stockControlRunningId;
		return this;
	}
	public String getAssembleBid() {
		return assembleBid;
	}
	public TccStockSource setAssembleBid(String assembleBid) {
		this.assembleBid = assembleBid;
		return this;
	}
	public Integer getIsNewInventory() {
		return isNewInventory;
	}
	public TccStockSource setIsNewInventory(Integer isNewInventory) {
		this.isNewInventory = isNewInventory;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockSource setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockSource setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockSource setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockSource tccStockSource(
		Integer sourceType,
		String sourceBid,
		Long sourceId,
		Long stockControlRunningId,
		String assembleBid,
		Integer isNewInventory,
		Integer status
			) {
		TccStockSource entity = new TccStockSource();
		entity.setSourceType(sourceType);
		entity.setSourceBid(sourceBid);
		entity.setSourceId(sourceId);
		entity.setStockControlRunningId(stockControlRunningId);
		entity.setAssembleBid(assembleBid);
		entity.setIsNewInventory(isNewInventory);
		entity.setStatus(status);
		return entity;
	}
}